﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Windows.Forms;
using ZK.Common;
using ZK.HardWareBLL;

namespace ZK.YHP_TransManage.Test
{
    public partial class 远瑞通室内读卡器 : Form
    {
        YRTRSNeaderBLL yRTRS;
        public 远瑞通室内读卡器()
        {
            InitializeComponent();
            yRTRS = new YRTRSNeaderBLL();
            yRTRS.getDataCallbackEvent = getDataCallback;
        }

        private void getDataCallback(string epc)
        {
            this.Invoke(new Action(() =>
            {
                textBox1.AppendText(epc + "\n");
            }));
        }

        private void button1_Click(object sender, EventArgs e)
        {
            yRTRS.OpenCom();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            yRTRS.BeginS();
        }

        private void button3_Click(object sender, EventArgs e)
        {
        }
    }

}
